package com.shiyi.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.Email;
import java.util.List;

/**
 *
 * @author qiu
 * @date 2021-03-04 上午 03:05
 * @since 1.0
 */
@Data
@AllArgsConstructor
//@Component
@Validated
//@ConfigurationProperties(prefix = "person")
public class Person {

//    @Value("${person.name}")
    private String name;
//    @Value("${person.age}")
    private int age;
//    @Value("${person.sex}")
    private String gender;

    private List<String> likes;

    @Email
    private String email;

}
